<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );


/**
 * @package		Joomla
 * @subpackage	JobBoard
 */
class JobBoardTableJA_JobAlerts extends JTable
{

	/** @var int Primary key */
	var $id		= null;
	
	var $title = null;
	/** @var int Field ID */
	var $user_id 	= null;	
	/** @var int length to be truncated */
	var $keyword = null;
	/** @var bool <b>True</b>, Click link to edit full record */ 
	var $category 			= null;
	/** @var datetime  */
	var $location 			= null;
	/** @var bool Whether job is starred */
	var $keyword_option			= 1; 
	/** @var bool Sort field by clicking on the title */
	var $posted_date			= null;
	var $sendmail_duration		= null;
	var $sal_min = null;
	var $sal_max = null;
	var $job_type = null;
	var $job_author = null;
//	var $job_distance = null;
	/**
	* @param database A database connector object
	*/
	function __construct(&$db)
	{
		parent::__construct( '#__ja_jobalerts', 'id', $db );
		
	}
	
	function check()
	{
		JFilterOutput::objectHTMLSafe($this,ENT_QUOTES,'');
		return true;
	}
	function load($key)
	{
		parent::load($key);
		$this->title = JFilterInput::_decode($this->title);
		$this->title = JFilterInput::clean($this->title);
		return $this;
	}
}